package com.team5101.product.api;

import com.team5101.dto.TProductDto;
import com.team5101.base.IBaseService;
import com.team5101.entity.TProduct;
import com.team5101.entity.TProductDesc;
import com.team5101.vo.ResultBean;

import java.util.List;

public interface IProductService extends IBaseService<TProduct> {
    List<TProductDto> getAll();

    ResultBean getProByPage(Integer pageNum, Integer pageSize);

    ResultBean addProduct(TProductDto tProductDto);

    TProductDto selectOne(Long pid);

    int updateByPid(TProductDesc td);
}
